<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddColResumeIdToSetTopRecordTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('set_top_record', function (Blueprint $table) {
            $table->integer('resume_id')->default(0)->comment('简历id')->after('position_id');
        });

        Schema::table('set_top_rule', function (Blueprint $table) {
            $table->string('set_type')->nullable()->comment('置顶类型position、resume')->after('type');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
